package com.itheima.mapper;

import com.itheima.pojo.Employee;
import com.itheima.vo.EmployeeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author :WuJunJie
 * packageName :com.itheima.mapper
 * fileName :EmployeeMapper
 * creationTime :2022-11-20 17:25
 */
@Mapper
public interface EmployeeMapper {
    Employee selectById(@Param("id") String id);
    Employee selectByUsername(@Param("username") String username);
    Employee selectByUsernameAndPassword(@Param("username") String username, @Param("password")String pasword);

    Integer insertEmployee(@Param("employee") Employee employee);

    List<Employee> selectPage(@Param("name") String name, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    Integer updateEmployee(@Param("employee") Employee employee);

    Integer countTotal(@Param("name") String name);
}
